import pickle
from dataclasses import dataclass
@dataclass
class Settings:
    # 无人机最大速度
    max_speed: float
    # 无人机当前型号
    model: str
    # 无人机预测冲突的时间
    time_horizon: float
# 创建测试数据
folder_path = "UAV-HAV-5-2-25-5--3" + "model-" + str(1)
prediction_time = 10  # 假设值
radius_all = {"0": 3, "1": 6, "2": 9}
settings_all = {"000": Settings(6, "0", prediction_time), "001": Settings(6, "0", prediction_time)}
goals = {"000": [[0, 0, -10], [200, 200, -10]], "001": [[199, 201, -10], [-200, -200, -10]]}

# 测试序列化
try:
    pickle.dumps((folder_path,radius_all, settings_all, goals))
    print("所有对象均可序列化")
except Exception as e:
    print(f"序列化失败: {e}")